
  
  function shangquassn(){
    	 $.ajax({
             url: urlcore + "/api/tradeArea/selectList",
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					alert(JSON.stringify(data.data));
					  $.each(data.data,function(y,n){
				var shangquan='<li sort-Screen="'+n.id+'">'+n.areaName+'</li> ';
                      $("#shangquan").append(shangquan);					  	
					  });
				} else if(data.code == 'OVERTIME') {
					var thisUrl = window.location.href;
					alert(thisUrl);
					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
						top.window.location.href = "1.0.0denglu.html";
					}
				} else {
					if(data.msg != '空数据') {
						alert(data.msg)
					} else {
						$('#thiscount').text(0);
					}
				}
			},
			error: function() {
				alert("error");
			}
		});	
    }
  
  
  
//分类
function sortType() {
	$("#fenlei").html("");
	$.ajax({
		url: urlcore + "/api/sortType/selectTwoList",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success: function(data) {
			if(data.success == true) {
				alert("...");
				var sun=0;
				var sun2=0;
				$.each(data.data.list, function(i,n) {
						sun++;
					  var fenlei='<ul class="slide downlist"> '+
'				<li class="public_shu">'+
'					<div class="w_xxtaba clearfix">'+
'                        <ul class="w_xxtab_tit w_shaix1 clearfix por" >'+
      
		'<li class="w_on1"><a href="javascript:void()">'+n.sortName+'</a></li>'+
          ' </ul>'+
'                        <div class="w_ddcon">'+
'                            <div class="haozhai_quyu">'+
'                                <ul>';
                   		$.each(n.sortTypeList,function(m,q){
						sun2++;
						var erji="";
						if(sun2==1){
							fenlei+='<li>'+q.sortName+'</li>';
						}else{
								fenlei+='<li>'+q.sortName+'</li>';
						}
					});
               fenlei+='</ul>'+
'                            </div>'+
'                        </div>'+
'                    </div>'+
'				</li> '+
'			</ul>';
				      $("#fenlei").append(fenlei);
					
				});
			}
		},
		error: function() {
			alert("error");
		}
	});
}

function dianji(){
	
	     
	
}
